package com.nervenets.web.controller.admin;

import com.nervenets.web.hibernate.domain.Notice;
import lombok.Data;

import java.io.Serializable;

@Data
public class NoticeModel implements Serializable {
    private long id;
    private int createTime;
    private String title;

    public NoticeModel(Notice notice) {
        this.id = notice.getId();
        this.createTime = notice.getCreateTime();
        this.title = notice.getTitle();
    }
}
